// 通知消息
onmessage = function(e) {
  var ws = new WebSocket(`ws://localhost:8080/socket/${e.data.id}`)
  ws.onopen = e => {
    // this.console.log('open')
  }
  ws.onmessage = e => {
    this.postMessage(e.data)
  }
  ws.onerror = e => {
    // ws.close();
  }
}
